<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns record of paradox database</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.px-get-record" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">px_get_record</h1>
  <p class="verinfo">(PECL paradox &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">px_get_record</span> &mdash; <span class="dc-title">Returns record of paradox database</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.px-get-record-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>px_get_record</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$pxdoc</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$num</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = 0</span></span>
  ] ) : <span class="type">array</span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.px-get-record-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">pxdoc</code></dt>

     <dd>

      <p class="para">
       Resource identifier of the paradox database
       as returned by <span class="function"><a href="px_new.html" class="function">px_new()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">num</code></dt>

     <dd>

      <p class="para">
       The record number is an artificial number counting records in the order
       as they are stored in the database. The first record has number 0.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">mode</code></dt>

     <dd>

      <p class="para">
       The optional <code class="parameter">mode</code> can be
       <strong><code>PX_KEYTOLOWER</code></strong> or <strong><code>PX_KEYTOUPPER</code></strong>
       in order to convert the keys of the returned array into lower or
       upper case. If
       <code class="parameter">mode</code> is not passed or is 0, then the key will be
       exactly like the field name. The element values will contain the field
       values. NULL values will be retained and are different from 0.0, 0 or
       the empty string. Fields of type <strong><code>PX_FIELD_TIME</code></strong>
       will be returned as an integer counting the number of milliseconds
       starting at midnight. A timestamp
       (<strong><code>PX_FIELD_TIMESTAMP</code></strong>) and date
       (<strong><code>PX_FIELD_DATE</code></strong>) are floating point respectively
       int values counting milliseconds respectively days starting
       at the beginning of julian calendar.
       Use the functions <span class="function"><a href="px_timestamp2string.html" class="function">px-timestamp2string()</a></span> and
       <span class="function"><a href="px_date2string.html" class="function">px-date2string()</a></span> to convert them into a character
       representation.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.px-get-record-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the <code class="parameter">num</code>&#039;th record from the paradox
   database. The record is returned as an associated array with its keys
   being the field names.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.px-get-record-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="px_retrieve_record.html" class="function" rel="rdfs-seeAlso">px_retrieve_record()</a> - Returns record of paradox database</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>